package com.example.server.utils;

import cn.example.server.dto.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: YAOZUN
 * @Date: Created in 18:26 2018/12/18 0018
 * @Description:
 */
public class DataUtil {
    private static Logger logger = LoggerFactory.getLogger(DataUtil.class);
    public static List<User> getUser(){
        Long startTime = System.currentTimeMillis();
        List<User> users = new ArrayList<>();
        for (long i = 0;i<150000;i++){
            User user = new User();
            user.setUserId(i);
            user.setEmail("yaozunwei@faceban,cn");
            user.setUsername("姚尊");
            users.add(user);
        }
        logger.info("数据准备耗时：time="+(System.currentTimeMillis()-startTime));
        return users;
    }


}
